﻿
var picPwPaintMethod = {};
picPwPaintMethod.NameControl = null;
picPwPaintMethod.IdControl = null;
$(function () {

    $("#tbpicPwPaintMethod").datagrid({
        url: '/Logic/PM/PaintAjax.aspx?method=GetPwPanitMethod',
        loadMsg: '数据加载中请稍候……',
        pagination: true,
        rownumbers: true,
        idField: "ID",
        fitColumns: true,
        columns: [[
            { field: 'ck', checkbox: true, width: 30 },
            { field: 'Content', title: '涂装方案', sortable: true, width: 120, align: "center" },
            { field: 'fee', title: '价格', sortable: true, width: 80, align: "center" },
            { field: 'unit', title: '单位', sortable: true, width: 80, align: "center" },
        ]],
        singleSelect: false,
        pageSize: 10,
        pageList: [10, 15, 20],
        striped: true
    });

    $.extend(com.dialogObj, { title: "选择涂装方案", width: 470, height: 375 });
    $("#picPwPaintMethod").dialog(com.dialogObj
         );

    $("#picPwPaintMethod").dialog("close");
});


picPwPaintMethod.Cancel = function () {
    $("#picPwPaintMethod").dialog("close");
}


picPwPaintMethod.open = function () {

    $("#picPwPaintMethod").dialog("open");
    $("#picPwPaintMethod").css('display', 'block');
}